package com.k136.controller;

import com.k136.entity.Brand;
import com.k136.entity.R;
import com.k136.service.BrandService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * TODO 类
 *
 * @author LiuTai
 * @version 1.00
 * @Date 2024/8/28
 */
@RestController
@CrossOrigin(origins = "*")
@RequestMapping("brand")
public class BrandController {
    @Resource
    private BrandService brandService;

    @GetMapping("selBrand")
    public R selBrand() {
        return R.ok( brandService.selBrand());
    }
}
